//
//  INHtmlElement.h
//  chanlin
//
//  Created by Ryan on 14-11-13.
//  Copyright (c) 2014年 chanlin. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, HtmlElementType){
    HtmlElementTypeUnknow           = -1, // 未知
    HtmlElementTypeText             = 0, // 文章
    HtmlElementTypeImage            = 1, // 插图
    HtmlElementTypeVideo            = 2, // 视频
    HtmlElementTypeOriUrl           = 3, // 原文链接
    HtmlElementTypeSurvey           = 4, // 调查
    HtmlElementTypeRelatedNews      = 5, // 相关新闻
    HtmlElementTypeLinkAD           = 6, // 广告
    HtmlElementTypeGallery          = 7, // 图集
    HtmlElementTypeCommentTop       = 8, // 评论头
    HtmlElementTypeComment          = 9, // 评论
    HtmlElementTypeCommentBottom    = 10, // 评论尾
    HtmlElementTypeAudio            = 11 //音频
};

@interface INHtmlElement : NSObject

@property(nonatomic,strong)NSMutableArray *attributeEntitys;
@property (nonatomic,strong)NSMutableAttributedString *textAttributedString;
@property(nonatomic,assign)NSRange textRange;
@property (nonatomic,unsafe_unretained) float cellHeight;
@property (nonatomic,strong) NSMutableString *strValue;
@property(nonatomic,copy)NSString *paragraphLabels;
@property (nonatomic,strong)NSString *linkUrl;
@property (nonatomic,unsafe_unretained) HtmlElementType type;

@property (nonatomic,strong)NSString *imgNote;
@property (nonatomic,unsafe_unretained)float imgHeight;
@property (nonatomic,unsafe_unretained)float imgWidth;
@property (nonatomic,unsafe_unretained)float noteHeight;
@property (nonatomic,unsafe_unretained)float textHeight;
@property (nonatomic,strong) NSMutableAttributedString *noteAttr;

- (NSMutableAttributedString *)attributedStringWithContent;


@end
